package goods.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import common.model.result.Result;
import goods.service.impl.UserServiceFeignClientFallback;

@Service
@FeignClient(value = "auth-server",fallback = UserServiceFeignClientFallback.class)
public interface UserServiceFeignClient {
    
    /**
     * 根据用户ID获取用户信息
     * @param userId 用户ID
     * @return 用户信息
     */
    @GetMapping("/auth/detail")
    Result getUserById(@RequestParam("id") Long id);
} 